const router = require('koa-router')()


// 通用接口 ↓
router.use(require('./common/base').routes(), require('./common/base').allowedMethods())

// 客户端接口 ↓
router.use('/client', require('./client').routes(), require('./client').allowedMethods())

// 管理端接口 ↓
router.use('/admin', require('./admin').routes(), require('./admin').allowedMethods())

module.exports = router